package backend.majiong.yaku.yakuman;

import backend.MainGame;
import backend.majiong.Pai;
import backend.majiong.Player;
import backend.majiong.yaku.AbstractYaku;
import backend.majiong.yaku.HandCombo;


public class Tuuisou extends AbstractYaku {

    @Override
    public boolean checkYaku(Player player, HandCombo combo, MainGame mainGame) {
        for(Pai pai:combo.getAllHandPai()){
            if(!Pai.TYPE_ZI.equals(pai.getType())) {
                return false;
            }
        }
        return true;
    }

    @Override
    public String getYakuName() {
        return "字一色";
    }

    @Override
    public Integer getYakuNum(boolean isMenQing) {
        return 13;
    }

}
